package com.dd.cloud.user.entity.chknowl;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 古典书籍内容表
 * </p>
 *
 * @author czg
 * @since 2022-07-04
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "学院书籍表")
public class ChknowlBooksPresent implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 古籍名
     */
    @Column(length = 32, comment = "古籍名")
    private String name;

    /**
     * 作者
     */
    @Column(length = 32, comment = "作者")
    private String author;


    /**
     * 简介
     */
    @Column(comment = "简介", type = MySqlTypeConstant.TEXT)
    private String introduction;

    /**
     * 状态 1正常 0.下架 -1 删除
     */
    @Column(comment = "状态 1.正常 0.下架 -1.删除")
    private Integer status;

    /**
     * 添加时间
     */
    @Column(comment = "添加时间")
    private LocalDateTime createDate;

    /**
     * 创建人id
     */
    @Column(comment = "创建人id")
    private Integer operId;

    /**
     * 操作时间
     */
    @Column(comment = "操作时间")
    private LocalDateTime operDate;

    /**
     * 书籍封面图片url 逗号分割
     */
    @Column(comment = "书籍封面图片url")
    private String cover;

    /**
     * 书籍url
     */
    @Column(comment = "书籍url")
    private String bookUrl;

    /**
     * 分类id
     */
    @Column(comment = "分类id")
    private Integer categoryId;

//    /**
//     * 排序
//     */
//    @Column(comment = "排序")
//    private Integer sort;

    /**
     * 首页推荐书籍 1是 0否
     */
    @Column(comment = "分类id", defaultValue = "0")
    private Integer isRecommend;
}
